package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

//select setmeal_id from setmeal_dish where dish_id in (1,2,3,4);
    List<Long> getSetmealIdsByDishIds(List<Long> ids);

    List<SetmealDish> getDishIdsBySetmealIds(Long ids);

    void insertBatch(List<SetmealDish> setmealDishList);

    void deleteBySetmealIds(List<Long> ids);
}
